
set JDK_DIR=C:\Program Files\Java\jdk1.7.0\bin\
set PATH=%PATH%;%JDK_DIR%

REM: Remember current working directory 
set CUR_DIR=%CD%

cd ../../build/classes/

REM: ------------------------------------------------------------
REM: Creating gamepack jar (just in case someone wants to use it)
REM: jar cvf ../jars/gamepack.jar gamepack/*.*
REM: ------------------------------------------------------------


REM: Creating a consolidated jar which contains the complete game. 
jar cvfm ../dist/demogame.jar Meta-inf/Manifest.mf tankattack/*.*  gamepack/*.*  org/*.* bin/*.* 

REM: If the bug is not fixed, you will have to copy resource directory aswell to jar directory

cd %CUR_DIR%


 
 